<template>
  <div>
    <life-cycle v-if="isShow"></life-cycle>
    <button @click="isShow=false">点我销毁</button>
  </div>
</template>

<script>



import LifeCycle from "./components/LifeCycle.vue";
export default {
  // 注册组件
  components: {
    LifeCycle,
  },
  data() {
    return {
      isShow: true,
    };
  },
  
};
</script>

<style>
</style>
